package com.hgkj.cloud.base.dao;

import com.hgkj.cloud.base.domain.SysTestingQuestion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface SysTestingQuestionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysTestingQuestion record);

    int insertSelective(SysTestingQuestion record);

    SysTestingQuestion selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysTestingQuestion record);

    int updateByPrimaryKey(SysTestingQuestion record);

    List<SysTestingQuestion> getQuestionsById(Map<String, Integer> map);

    List<SysTestingQuestion> listTesting(Map<String,Object> map);

    SysTestingQuestion getQuestionById(int id);

    int updateQuestion(SysTestingQuestion tq);

    int deleteQuestion(@Param("id") int id);

    int insertQuestion(SysTestingQuestion question);
    List<Map<String, Object>> findQuestionnaireAllInfosByTableUuid(String qnid);
}